# # 先构造 datetime 变量
# 1.
# import datetime
# date1 = datetime.datetime(2020, 5, 29)
# date2 = datetime.datetime(2022, 5, 8)
#
# print(date2 - date1)

# 2.
# from datetime import datetime
# date1 = datetime(2020, 5, 29)
# date2 = datetime(2022, 5, 8)
# print(date2 - date1)

# 3.
import datetime as dt
date1 = dt.datetime(2020, 5, 29)
date2 = dt.datetime(2022, 5, 8)

print(date2 - date1)